package com.photologics.main;

import com.photologics.logic.LogicHelper;

public class AccountInfo {
	private final int COIN_MAX = 100000000;
	private int coin, horizontal, vertical, squar, removeX, showImage;

	public AccountInfo() {
		coin = LogicHelper.db.getCoin();
		horizontal = LogicHelper.db.getHorizon();
		vertical = LogicHelper.db.getVertical();
		squar = LogicHelper.db.getSquar();
		removeX = LogicHelper.db.getRemoveX();
		showImage = LogicHelper.db.getShow();
	}

	public int getCoin() {
		return coin;
	}

	public int getHorizontal() {
		return horizontal;
	}

	public int getVertical() {
		return vertical;
	}

	public int getSquar() {
		return squar;
	}

	public int getRemoveX() {
		return removeX;
	}

	public int getShowImage() {
		return showImage;
	}

	public void changeCoin(int value) {
		coin += value;
		if (coin > COIN_MAX)
			coin = COIN_MAX;
		LogicHelper.db.setCoin(coin);
	}

	public void changeHorizontal(int value) {
		horizontal += value;
		LogicHelper.db.setHorizon(horizontal);
	}

	public void changeVertical(int value) {
		vertical += value;
		LogicHelper.db.setVertical(vertical);
	}

	public void changeSquar(int value) {
		squar += value;
		LogicHelper.db.setSquar(squar);
	}

	public void changeRemoveX(int value) {
		removeX += value;
		LogicHelper.db.setRemoveX(removeX);
	}

	public void changeShowImage(int value) {
		showImage += value;
		LogicHelper.db.setShow(showImage);
	}

}
